import request from "@/utils/request";

export function luckDetails(params) {
    return request({
        url: `/tduck-api/wxluck/details/${params.id}`,
        method: "get",
        params,
    });
}

//

export function wxluckrecord(data) {
    return request({
        url: `/tduck-api/wxluckrecord/create`,
        method: "post",
        data,
    });
}

//

export function luckbyopenid(params) {
    return request({
        url: `/tduck-api/wxluckrecord/luckbyopenid`,
        method: "get",
        params,
    });
}

// luckbyphone

export function luckbyphone(params) {
    return request({
        url: `/tduck-api/wxluckrecord/luckbyphone`,
        method: "get",
        params,
    });
}